package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(6);
    _jspx_dependants.add("/./struct/head.jsp");
    _jspx_dependants.add("/./struct/logo.jsp");
    _jspx_dependants.add("/./struct/navBar.jsp");
    _jspx_dependants.add("/./struct/popup.jsp");
    _jspx_dependants.add("/./struct/bottomBar.jsp");
    _jspx_dependants.add("/./struct/footer.jsp");
  }

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("<head>\n");
      out.write("\t");
      out.write("\t<title>EngSoft - SGCT</title>\n");
      out.write("\t\n");
      out.write("\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"struct/main.css\" />\n");
      out.write("\t<link rel=\"SHORTCUT ICON\" href=\"images/favicon.ico\" />");
      out.write("\n");
      out.write("\t\n");
      out.write("\t");
 request.getSession().setAttribute("currentPage", "index.jsp");
      out.write("\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t<div id=\"wrapper\">\n");
      out.write("\n");
      out.write("\t\t");
      out.write("<h1 class=\"logo\">\n");
      out.write("\t<a href=\"http://www.unicamp.br\" target=\"_blank\">\n");
      out.write("\t\t<img border=\"0\" src=\"images/logo.png\" align=\"middle\" alt=\"unicamp_logo\" height=72px width=80px />\n");
      out.write("\t</a>\n");
      out.write("\tEngSoft <span>SGCT</span>\n");
      out.write("</h1>");
      out.write('\n');
      out.write('	');
      out.write('	');
      out.write("<div id=\"nav\">\n");
      out.write("\t");
 if(request.getSession().getAttribute("loginState") == null){ 
      out.write(" \n");
      out.write("\t\t<ul id=\"menu\">\n");
      out.write("\t\t\t<li><a href=\"index.jsp\">Home </a></li>\n");
      out.write("\t\t\t<li><a href=\"contato.jsp\">Contato</a></li>\n");
      out.write("\t\t</ul>\n");
      out.write("\t");
}else if(request.getSession().getAttribute("loginState").equals("chair")){ 
      out.write("\n");
      out.write("\t\t<ul id=\"menu\">\n");
      out.write("\t\t    <li><a href=\"index.jsp\">Home </a></li>\n");
      out.write("\t\t    <li><a href=\"listWorks\">Avaliações</a></li>\n");
      out.write("\t\t    <li><a href=\"submissao.jsp\">Submissões</a></li>\n");
      out.write("\t\t    <li><a href=\"configuracoes.jsp\">Configurações</a></li>\n");
      out.write("\t\t    <li><a href=\"contato.jsp\">Contato</a></li>\n");
      out.write("\t\t</ul>\n");
      out.write("\t");
}else if(request.getSession().getAttribute("loginState").equals("avaliador")){ 
      out.write("\n");
      out.write("\t\t<ul id=\"menu\">\n");
      out.write("\t\t    <li><a href=\"index.jsp\">Home </a></li>\n");
      out.write("\t\t    <li><a href=\"listWorks\">Avaliações</a></li>\n");
      out.write("\t\t    <li><a href=\"configuracoes.jsp\">Configurações</a></li>\n");
      out.write("\t\t    <li><a href=\"contato.jsp\">Contato</a></li>\n");
      out.write("\t\t</ul>\n");
      out.write("\t");
}else if(request.getSession().getAttribute("loginState").equals("autor")){ 
      out.write("\n");
      out.write("\t\t<ul id=\"menu\">\n");
      out.write("\t\t    <li><a href=\"index.jsp\">Home </a></li>\n");
      out.write("\t\t    <li><a href=\"submissao.jsp\">Submissões</a></li>\n");
      out.write("\t\t    <li><a href=\"configuracoes.jsp\">Configurações</a></li>\n");
      out.write("\t\t    <li><a href=\"contato.jsp\">Contato</a></li>\n");
      out.write("\t\t</ul>\n");
      out.write("\t");
} else {
      out.write("\n");
      out.write("\t\t<ul id=\"menu\">\n");
      out.write("\t\t    <li><a href=\"index.jsp\">Home </a></li>\n");
      out.write("\t\t    <li><a href=\"configuracoes.jsp\">Configurações</a></li>\n");
      out.write("\t\t    <li><a href=\"contato.jsp\">Contato</a></li>\n");
      out.write("\t\t</ul>\n");
      out.write("\t");
} 
      out.write("\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<div class=\"clear\" ></div>");
      out.write("\n");
      out.write("\t  \t");
 if(request.getAttribute("message") != null) { 
      out.write("\n");
      out.write("\t<script language=\"JavaScript\" type=\"text/javascript\">\n");
      out.write("\t\talert(\"");
      out.print(String.valueOf(request.getAttribute("message")));
      out.write("\")\n");
      out.write("\t</script>\n");
 }
      out.write("\n");
      out.write("\t  \t\n");
      out.write("\t\t<div id=\"content\">\n");
      out.write("\t\t\t<h1>SGCT</h1>\n");
      out.write("\t\t\t<p>\n");
      out.write("\t\t\t\t\n");
      out.write("\t\t\t</p>\n");
      out.write("\t\t\t");
 if( request.getSession().getAttribute("loginState") != null){ 
      out.write("\n");
      out.write("\t\t\t    <h1>Você está logado e agora?</h1>\n");
      out.write("\t\t\t    <p>\n");
      out.write("\t\t\t    \tAcesse o menu acima para submeter ou avaliar um trabalho.\n");
      out.write("\t\t\t    </p>\n");
      out.write("\t\t    ");
} else { 
      out.write("\n");
      out.write("\t\t\t    <h1>Você não possui cadastro?</h1>\n");
      out.write("\t\t\t    <p>\n");
      out.write("\t\t\t    \t<a href=\"cadastro.jsp\">Cadastre aqui</a>.\n");
      out.write("\t\t\t    </p>\n");
      out.write("\t\t\t");
 } 
      out.write("\n");
      out.write("\t\n");
      out.write("\t\t    ");
      out.write("<div class=\"line\" ></div>\n");
      out.write("\n");
 if(session.getAttribute("loginState") != null){ 
      out.write("\n");
      out.write("\t<div class=\"left_box1\">\n");
      out.write("\t\t<p class=\"thetext\">\n");
      out.write("\t\t\t<span>Login</span><br />\n");
      out.write("\t\t\tVocê está logado como: \n");
      out.write("\t\t\t<span><center>");
      out.print(session.getAttribute("userName"));
      out.write("</center></span>\n");
      out.write("\t\t\t<a href=\"logout\">Logout</a>  &raquo;\n");
      out.write("\t\t</p>\n");
      out.write("\t</div>\n");
} else { 
      out.write(" \n");
      out.write("\t<div class=\"left_box1\">\n");
      out.write("\t\t<form action=\"login\" method=\"post\">\n");
      out.write("\t<p class=\"thetext\">\n");
      out.write("\t\t<span>Login</span><br /> \n");
      out.write("\t\tLogin <input name=\"usuario\" type=\"text\" size = 10 name= /><br />\n");
      out.write("\t\tPass  &nbsp;<input name=\"password\" type=\"password\" size= 10 /><br />\n");
      out.write("\t\t&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;\n");
      out.write("\t\t<input type=\"submit\" value=\"Login\"/> <br />\n");
      out.write("\t\t<a href=\"cadastro.jsp\">Cadastre-se</a> &raquo;\n");
      out.write("\t</p>\n");
      out.write("</form>\n");
      out.write("\t</div>\n");
 } 
      out.write("\n");
      out.write("  \n");
      out.write("\n");
      out.write("<div class=\"left_box1\">\n");
      out.write("\t<p class=\"thetext\">\n");
      out.write("\t\t<span>Mapa </span><br />\n");
      out.write("\t\tAcesse o mapa com a localização do evento.<br />\n");
      out.write("\t\t<a href=\"maps.jsp\">Mapa</a> &raquo;\n");
      out.write("\t</p>\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<div class=\"left_box1\">\n");
      out.write("\t<p class=\"thetext\">\n");
      out.write("\t\t<span>Agenda</span><br />\n");
      out.write("\t\tAcesse o agenda com a programação.<br />\n");
      out.write("\t\t<a href=\"agenda.jsp\">Agenda</a> &raquo;\n");
      out.write("\t</p>\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<div class=\"clear\" ></div>\n");
      out.write("<div class=\"line\" ></div>");
      out.write("\n");
      out.write("\t\t    ");
      out.write("<div id=\"footer\">\n");
      out.write("\t<p>\n");
      out.write("     \t<span>&copy;2010 <a href=\"http://www.ic.unicamp.br\" target=\"_blank\">IC</a></span>\n");
      out.write("     \t| <a href=\"contato.jsp\">Contato</a>\n");
      out.write("\t</p>\n");
      out.write("</div>");
      out.write("\n");
      out.write("\n");
      out.write("\t\t</div>\n");
      out.write("\t</div>\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
